package com.ruoyi.yljf.controller.AppController;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.log.annotation.Log;
import com.ruoyi.common.security.annotation.Anonymous;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.yljf.domain.CoursePackage;
import com.ruoyi.yljf.domain.vo.CoursePackageResVO;
import com.ruoyi.yljf.service.ICoursePackageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.Arrays;
import java.util.List;

/**
 * 章节Controller
 * 
 * @author metaee
 * @date 2025-03-06
 */
@Anonymous
@RestController
@RequestMapping("/api/coursePackage")
public class ApiCoursePackageController extends BaseController {
    @Autowired
    private ICoursePackageService coursePackageService;


    /**
     * 课程详情-简介
     */
    @GetMapping(value = "/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id) {
        CoursePackageResVO vo = coursePackageService.selectById(id);
        return success(vo);
    }




}
